// import { BaseInstance } from '@/http/index.ts'

const loginFetch = () => {
  return {
    code: 200,
    data: {
      access_token: 'bqddxxwqmfncffacvbpkuxvwvqrhln',
    },
    msg: '成功',
  }
}

// * 获取菜单列表
const getAuthMenuListApi = () => {
  return {
    code: 200,
    data: [
      {
        path: '/home',
        name: 'home',
        component: '/Home/Index.vue',
        meta: {
          icon: 'HomeFilled',
          title: '首页',
          isLink: '',
          isHide: false,
          isFull: false,
          isAffix: true,
          isKeepAlive: true,
        },
      },
      {
        path: '/menu',
        name: 'menu',
        redirect: '/menu/menu1',
        meta: {
          icon: 'List',
          title: '菜单嵌套',
          isLink: '',
          isHide: false,
          isFull: false,
          isAffix: false,
          isKeepAlive: true,
        },
        children: [
          {
            path: '/menu/menu1',
            name: 'menu1',
            component: '/Menu/Menu1/Index.vue',
            meta: {
              icon: 'Menu',
              title: '菜单1',
              isLink: '',
              isHide: false,
              isFull: false,
              isAffix: false,
              isKeepAlive: true,
            },
          },
          {
            path: '/menu/menu2',
            name: 'menu2',
            redirect: '/menu/menu2/menu21',
            meta: {
              icon: 'Menu',
              title: '菜单2',
              isLink: '',
              isHide: false,
              isFull: false,
              isAffix: false,
              isKeepAlive: true,
            },
            children: [
              {
                path: '/menu/menu2/menu21',
                name: 'menu21',
                component: '/Menu/Menu2/Menu21/Index.vue',
                meta: {
                  icon: 'Menu',
                  title: '菜单2-1',
                  isLink: '',
                  isHide: false,
                  isFull: false,
                  isAffix: false,
                  isKeepAlive: true,
                },
              },
              {
                path: '/menu/menu2/menu22',
                name: 'menu22',
                component: '/Menu/Menu2/Menu22/Index.vue',
                meta: {
                  icon: 'Menu',
                  title: '菜单2-2',
                  isLink: '',
                  isHide: false,
                  isFull: false,
                  isAffix: false,
                  isKeepAlive: true,
                },
              },
            ],
          },
        ],
      },
    ],
    msg: '成功',
  }
  // return post('/hzfi-micro-service/v1/page/getModuleByPage')
}

// * 用户退出登录
const logoutApi = () => {
  console.log('已经退出登录')
  // return http.post(PORT1 + `/logout`)
}
export { loginFetch, getAuthMenuListApi, logoutApi }
